<template>
  <el-form
    :label-position="labelPosition"
    label-width="60px"
    :model="formLabelAlign"
    size="large"
    style="max-width: 460px"
  >
    <el-form-item label="手机号">
      <el-input v-model="formLabelAlign.account" />
    </el-form-item>
    <el-form-item label="验证码">
      <div class="verify-code">
        <el-input v-model="formLabelAlign.code" />
        <el-button class="get-btn" type="primary">获取验证码</el-button>
      </div>
    </el-form-item>
  </el-form>
</template>

<script lang="ts" setup>
import { reactive, ref } from 'vue'

const labelPosition = ref('right')

const formLabelAlign = reactive({
  account: '',
  code: '',
})
</script>

<style scoped lang="less">
.verify-code {
  display: flex;

  .get-btn {
    margin-left: 8px;
  }
}
</style>
